<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Jiannei\Response\Laravel\Support\Facades\Response;

class CommonController extends Controller
{
    public function config()
    {
        $data = [
            'home_name' => '学单词',
            'word_background' => '#90EE90',
            'word_play_type' => 'us',
            'dictation' => [
                'play_mode_option' => ['auto' => '自动', 'handle' => '手动'],
                'play_mode_default' => 'auto',
                'time_interval_option' => [5 => '5s', 10 => '10s', 15 => '15s', 20 => '20s'],
                'time_interval_default' => '5',
            ],
        ];

        return Response::success($data);
    }
}
